INCLUDE = -I3rdinclude -Icrypto -Idb/mysql/Include -Idb/oracle/odpi/include -Idb/postgresql/include -Idb/sqlite3/sqlite3.24.0 -Inet -I.. -I.


objs := $(patsubst %.cpp, %.o, $(wildcard *.cpp))
objs += $(patsubst %.cpp, %.o, $(wildcard crypto/*.cpp))

objs += $(patsubst %.cpp, %.o, $(wildcard db/mysql/*.cpp))
objs += $(patsubst %.cpp, %.o, $(wildcard db/oracle/*.cpp))
objs += $(patsubst %.cpp, %.o, $(wildcard db/oracle/odpi/embed/*.cpp))
objs += $(patsubst %.cpp, %.o, $(wildcard db/postgresql/*.cpp))
objs += $(patsubst %.cpp, %.o, $(wildcard db/sqlite3/*.cpp))
objs += $(patsubst %.c, %.o, $(wildcard db/sqlite3/sqlite3.24.0/sqlite3.c))

objs += $(patsubst %.cpp, %.o, $(wildcard json/*.cpp))

objs += $(patsubst %.cpp, %.o, $(net/wildcard *.cpp))
objs += $(patsubst %.c, %.o, $(net/lib/wildcard *.c))

objs += $(patsubst %.cpp, %.o, $(wildcard strconv/*.cpp))

objs += $(patsubst %.cpp, %.o, $(wildcard xml/*.cpp))


main:$(objs)  
	ar -cr libmix.a $^  
	
 
%.o : %.cpp   
	g++ -c $(INCLUDE) -o $@ $< -std=c++11 
clean:  
	rm $(objs)